﻿@model equinoxWeb.Models.Cliente
@{
    ViewBag.Title = "Details";
    Layout = (ViewBag.esCliente!=null && ViewBag.esCliente?"~/Views/Shared/_ClienteLayout.cshtml":"~/Views/Shared/_Layout.cshtml");
}
<!-- content -->
    <script language="JavaScript" src="/Scripts/cliente.js"></script>
    <form class="form-horizontal" name="detailsForm" method="get">
        @if (Model == null)
        {
            <label>Cliente no encontrado</label>
        }else{
        <fieldset>
            <legend>@(ViewBag.lang==null || ViewBag.lang == "ES" ? "Datos del cliente":"Client profile")</legend>
            @Html.HiddenFor(model => model.Idcliente)
            <div class="form-group">
                <label class="col-lg-4 control-label" for="CodigoCliente">@(ViewBag.lang==null || ViewBag.lang == "ES" ? "Codigo del cliente":"Client ID"):</label>
                <div class="col-lg-4 form-control-static">
                    @Model.CodigoCliente
                </div>
            </div>
            <div class="form-group">
                <label class="col-lg-4 control-label" for="RazonSocial">@(ViewBag.lang==null || ViewBag.lang == "ES" ? "Razon social":"Corparate name"):</label>
                <div class="col-lg-4 form-control-static">
                    @Model.RazonSocial
                </div>
            </div>

            <!--RUC-->
            <div class="form-group">
                <label class="col-lg-4 control-label" for="Ruc">Ruc@(ViewBag.lang==null || ViewBag.lang == "ES" ? " (Peru only)":""):</label>
                <div class="col-lg-4 form-control-static">
                    @Model.Ruc
                </div>
            </div>

            <div class="form-group">
                <label class="col-lg-4 control-label" for="Direccion">@(ViewBag.lang==null || ViewBag.lang == "ES" ? "Direccion":"Address"):</label>
                <div class="col-lg-4 form-control-static">
                    @Model.Direccion
                </div>
            </div>

            <div class="form-group">
                <label class="col-lg-4 control-label" for="TelefonoCorp">@(ViewBag.lang==null || ViewBag.lang == "ES" ? "Telefono corporativo":"Corporate phone"):</label>
                <div class="col-lg-4 form-control-static">
                    @Model.TelefonoCorp
                </div>
            </div>

            <div class="form-group">
                <label class="col-lg-4 control-label" for="CorreoCorp">@(ViewBag.lang==null || ViewBag.lang == "ES" ? "Correo corporativo" : "Corporate e-mail"):</label>
                <div class="col-lg-4 form-control-static">
                    @Model.CorreoCorp
                </div>
            </div>

            <div class="form-group">
                <label class="col-lg-4 control-label" for="NombreContacto">@(ViewBag.lang==null || ViewBag.lang == "ES" ? "Nombre Contacto":"Contact name"):</label>
                <div class="col-lg-4 form-control-static">
                    @Model.NombreContacto
                </div>
            </div>

            <div class="form-group">
                <label class="col-lg-4 control-label" for="TelefonoContacto">@(ViewBag.lang==null || ViewBag.lang == "ES" ? "Telefono de Contacto":"Contact phone"):</label>
                <div class="col-lg-4 form-control-static">
                    @Model.TelefonoContacto
                </div>
            </div>

            <div class="form-group">
                <label class="col-lg-4 control-label" for="CorreoContacto">@(ViewBag.lang==null || ViewBag.lang == "ES" ? "Correo del contacto":"Contact name"):</label>
                <div class="col-lg-4 form-control-static">
                    @Model.CorreoContacto
                </div>
            </div>
               <div class="form-group">
			<br/>
			    @if (!ViewBag.esCliente){
					<button type="button" onclick="javascript:EditarCliente(detailsForm)" class="btn btn-large btn-primary col-lg-1">@(ViewBag.lang==null || ViewBag.lang == "ES" ? "Editar":"Edit")</button>  
					<button type="button" onclick="javascript:ListarClub(detailsForm)" class="btn btn-large btn-primary col-lg-1">@(ViewBag.lang==null || ViewBag.lang == "ES" ? "Ver clubes":"Clubs")</button> 
                 }
                   	<button type="button" class="btn btn-large col-lg-1" onclick="javascript:history.back();">@(ViewBag.lang==null || ViewBag.lang == "ES" ? "Atras":"Back")</button>
				
			</div>
        </fieldset>
        }
    </form>
    <!-- / content -->
